package com.hotel.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hotel.dao.HouseStatementMapper;
import com.hotel.entity.HouseStatement;
import com.hotel.service.HouseStatementService;

@Service("houseStatementService")
@Transactional(transactionManager="txManager")
public class HouseStatementServiceImpl implements HouseStatementService {
	
	@Resource
	private HouseStatementMapper houseStatementMapper;
		
	@Override
	public List<HouseStatement> findMonthHouseStatement(String year, String month) {
		return houseStatementMapper.findMonthHouseStatement(year, month);
	}

	@Override
	public List<HouseStatement> findAnnualHouseStatement(String year) {
		return houseStatementMapper.findAnnualHouseStatement(year);
	}

}
